package shop.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import shop.dao.IAdminDao;
import shop.model.Admin;

@RestController
@RequestMapping("admin")
public class AdminController {

	@Resource
	private IAdminDao dao;
	
	@RequestMapping("login.do")
	public Admin login(Admin a) {
		return dao.login(a);
	}
}
